package com.example.demo.thread.lock.lockInterruptibly;

/**
 * @author luowj12
 * @since 2021/5/13 15:43
 */
public class LockMain {
    public static void main(String[] args) throws InterruptedException {
        /*Thread i1 = new Thread(new Lock01());
        Thread i2 = new Thread(new Lock01());*/

        Thread i1 = new Thread(new LockInterruptibly01());
        Thread i2 = new Thread(new LockInterruptibly01());

        i1.start();
        Thread.sleep(100);
        i2.start();
        //i0.start();
        //Thread.sleep(100);
        i2.interrupt();
    }
}
